<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScrvtbpubreperEditDlg" widgetVar="ScrvtbpubreperEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditScrvtbpubreperTitle}">

            <h:form id="ScrvtbpubreperEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{scrvtbpubreperController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditScrvtbpubreperLabel_scrvtbpubreperid}" for="scrvtbpubreperid" />
                        <h:outputText id="scrvtbpubreperid" value="#{scrvtbpubreperController.selected.scrvtbpubreperid}" />

                        <p:outputLabel value="#{myBundle.EditScrvtbpubreperLabel_constadocente}" for="constadocente" />
                        <p:selectBooleanCheckbox id="constadocente" value="#{scrvtbpubreperController.selected.constadocente}" required="true" requiredMessage="#{myBundle.EditScrvtbpubreperRequiredMessage_constadocente}"/>

                        <p:outputLabel value="#{myBundle.EditScrvtbpubreperLabel_scthtbdatosgenid}" for="scthtbdatosgenid" />
                        <p:selectOneMenu id="scthtbdatosgenid" value="#{scrvtbpubreperController.selected.scthtbdatosgenid}" required="true" requiredMessage="#{myBundle.EditScrvtbpubreperRequiredMessage_scthtbdatosgenid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbdatosgenController.items}"
                                           var="scthtbdatosgenidItem"
                                           itemValue="#{scthtbdatosgenidItem}"
                                           itemLabel="#{scthtbdatosgenidItem.scthtbdatosgenid.toString()}"
                                           />
                            <f:converter binding="#{scthtbdatosgenConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditScrvtbpubreperLabel_scrvtbrepubrevid}" for="scrvtbrepubrevid" />
                        <p:selectOneMenu id="scrvtbrepubrevid" value="#{scrvtbpubreperController.selected.scrvtbrepubrevid}" required="true" requiredMessage="#{myBundle.EditScrvtbpubreperRequiredMessage_scrvtbrepubrevid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scrvtbrepubrevController.items}"
                                           var="scrvtbrepubrevidItem"
                                           itemValue="#{scrvtbrepubrevidItem}"
                                           itemLabel="#{scrvtbrepubrevidItem.scrvtbrepubrevid.toString()}"
                                           />
                            <f:converter binding="#{scrvtbrepubrevConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scrvtbpubreperController.save}" value="#{myBundle.Save}" update="display,:ScrvtbpubreperListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScrvtbpubreperEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScrvtbpubreperEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
